package com.bob.usercenter.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrorCode {

    SUCCESS(0,"操作成功!"),
    fail(1,"操作失败!"),
    PARAMS_IS_EMPTY_ERROR (40410,"请求参数含有空值"),


    AUTH_ERROR(40411,"账号长度短于4"),
    NO_AUTH_ERROR(40412,"密码长度小于8"),
    SYS_VALID_ERROR(40413,"账号格式错误"),
    ACCOUNT_EXIST_ERROR(50000,"账号已经存在"),
    PWD_ERROR(50001,"密码错误"),
    INVALID_ROLE_ERROR(50001,"不是管理员"),
    SYS_EXCEPTION(2,"模拟异常"),
    INVALID_TOKEN(40410,"Token无效，您无权访问该接口"),

;

    private Integer code;
    private String description;

}
